package com.zhiche.lisa.bms.dao.model.pay;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 付款确认明细
 * </p>
 *
 * @author WangShuiJin
 * @since 2018-10-11
 */
@TableName("lisa_pay_affirm_detail")
public class PayAffirmDetail extends Model<PayAffirmDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 主表id
     */
	@TableField("head_id")
	private Long headId;
    /**
     * 付款方式; 10-银行转账, 20-支票, 30-承兑汇票, 40-油卡, 50-路桥卡
     */
	@TableField("pay_type")
	private String payType;
    /**
     * 付款金额
     */
	@TableField("pay_sum")
	private BigDecimal paySum;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getHeadId() {
		return headId;
	}

	public void setHeadId(Long headId) {
		this.headId = headId;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public BigDecimal getPaySum() {
		return paySum;
	}

	public void setPaySum(BigDecimal paySum) {
		this.paySum = paySum;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "PayAffirmDetail{" +
			", id=" + id +
			", headId=" + headId +
			", payType=" + payType +
			", paySum=" + paySum +
			"}";
	}
}
